package creational.singleton;

public class InnerClassSingleton {
    private InnerClassSingleton(){}

    public static InnerClassSingleton getInstance(){
        return SingletonHolder.instance;
    }

    private static class SingletonHolder{
        private static InnerClassSingleton instance = new InnerClassSingleton();
    }
}
